* What kind of error is this?
*/
public ErrorKind getKind() {
return ErrorKind.valueOf(json.get("kind").getAsString());
}
/**
* What kind of error is this?
*/
public ErrorKind getKind() {
String name = json.get("kind").getAsString();
try {
return ErrorKind.valueOf(name);
} catch (IllegalArgumentException e) {
return ErrorKind.Unknown;
}
}